/**********************************************************

file:  Camera_LS_Y201.h

Author:	  albert

default daud rate of serial port is 38400
 **********************************************************/

#ifndef __CAMERA_LS_Y201_H__             
  #define __CAMERA_LS_Y201_H__            

  #include <avr/io.h>
  #include <util/delay.h>

  //#define POWER_CAM PB0
  extern unsigned char camera_usart_num;
  extern unsigned char jpeg_content[500];
  extern volatile unsigned int jpeg_content_count;
  extern volatile unsigned int file_size;

  unsigned char camera_return_value_chk(unsigned char ret_bytes);
  unsigned char Camera_Reset(void);
  unsigned char Camera_Compression_ratio(void);
  unsigned char Camera_image_size(void);
  unsigned char Camera_takePicture(void);
  unsigned char Camera_jpeg_file_size(void);
  unsigned char Camera_Read_jpeg(void);
  unsigned char Camera_Stop_taking_pic(void);
#endif 

 /*********************************************************/
